import { Router } from 'express';
import Payload from '../models/Payload';
// import productManager from '../services/ProductManagerService';
import redisUtil from '../lib/RedisUtil';
export default () => {
    let api = Router();
    // putdata测试
    api.post('/', async (req, res, next) => {
        let testdata = req.body;
        console.log(testdata);
        try {
                res.status(200).json(new Payload(testdata));
        } catch (error) {
            next(error);
        }
    });

    return api;
}
